import request from '@/utils/request.js'
// 获取分类列表
export const getCategory = () => {
  return request({
    url: '/home/category/head',
    method: 'get'
  })
}
// 获取品牌数据列表
export const getBrand = params => {
  return request({
    url: '/home/brand',
    method: 'get',
    params: { params }
  })
}
// 获取轮播图数据
export const getBanner = () => {
  return request({
    url: '/home/banner',
    method: 'get'
  })
}
// 新鲜好物的数据
export const getNewGoods = () => {
  return request({
    url: '/home/new',
    method: 'get'
  })
}
// 获取人气推荐的数据
export const getHotGoods = () => {
  return request({
    url: '/home/hot',
    method: 'get'
  })
}
// 获取商品区块
export const getGoodsList = () => {
  return request({
    url: '/home/goods',
    method: 'get'
  })
}
// 获取最新专题
export const getSpecial = () => {
  return request({
    url: '/home/special',
    method: 'get'
  })
}
